/*   **********************************************************************  **
 **   Copyright notice                                                       **
 **                                                                          **
 **   (c) 2009, Around(J2)ME				                                 **
 **   All rights reserved.                                                   **
 **                                                                          **
 **   This program and the accompanying materials are made available under   **
 **   the terms of the New BSD License which accompanies this    			 **
 **   distribution.											                 **
 **   A copy is found in the textfile LICENSE.txt							 **
 **                                                                          **
 **   This copyright notice MUST APPEAR in all copies of the file!           **
 **                                                                          **
 **   Main developers:                                                       **
 **     Juri Strumpflohner		http://blog.js-development.com	             **
 **		Matthias Braunhofer		http://matthias.jimdo.com                    **
 **                                                                          **
 **  **********************************************************************  */

package com.aroundj2me.model;


/**
 * Class that is responsible for providing credential information about the current user, 
 * basically username and password.
 * All the logic of retrieving them should be encapsulated here
 */
public class CredentialProvider implements ICredentialProvider {
	private String username = null;
	private String password = null;
	
	public CredentialProvider() {
		
	}

	public void setUsername(String username) {
		this.username = username;
	}


	public void setPassword(String password) {
		this.password = password;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.aroundj2me.controller.ICredentialProvider#getUserPassword()
	 */
	public String getUserPassword() {
		return this.password;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.aroundj2me.controller.ICredentialProvider#getUsername()
	 */
	public String getUsername() {
		return username;
	}
}
